<!-- m_footer -->
<div class="m_footer">
    <div class="m_footer_top m_public">
        <h3 class="title">CONTACT US</h3>
        <span class="link"></span>
        <div class="add_info">
            {$CONTACT_US.details}
        </div>
    </div>
    <div class="m_footer_bottom m_public">
        <h3 class="title">SUBSCRIBE</h3>
        <span class="link"></span>
        <p class="content">ACCESS EXCLUSIVE OFFERS NEWS AND MORE</p>
        <div class="feedback">
            <form id="m_feedback_form" method="post" action="#" enctype="multipart/form-data">
                <input id="usermailads" name="email" value="" placeholder="Enter your email address" type="email">
            </form>
            <a id="emailadd" class="pushbar">Subscribe</a>
        </div>
    </div>
</div>
<div class="go_top">
    <div style="text-align: center;padding: 30px 0;color:#1a7e67;">
        <i class="iconfont icon-fanhuidingbu1"></i>
        <h3 style="padding-top: 5px;">Return to the top</h3>
    </div>
</div>
<!-- m_footer end -->



<!-- js -->
<script src="__MOBILE__js/jquery.js"></script>
<script src="__MOBILE__js/jquery.flexslider.js"></script>
<script src="__MOBILE__js/jquery.waypoints.min.js"></script>
<script src="__MOBILE__js/countUp.min.js"></script>
<script src="__MOBILE__js/jquery.ellipsis.js"></script>
<script>
    var addurl = '/mobile/index/subscription';
    $('#emailadd').click(function () {
        var email = $('#usermailads').val();
        if(email==''){
            return false;
        }
        if(!email.match(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/))
        {
            alert("No such a mailbox, please check you have written the recipient's mail address correctly.");
            return false;
        }
        $.post(addurl, {'email':$('#usermailads').val()},function(res) {
            var success = JSON.parse(res);
            if(success.code===200){
                $('#usermailads').val('');
                alert(success.msg);
                return false;
            }else {

            }


        });
    })
    //banner slide
    $('.m_banner').flexslider({
        selector: ".m_banner_slider > li",
        animation: "slide",
        controlNav: true,
        directionNav: false,
        multipleKeyboard:true,
        animationLoop: true,
        slideshow: true,
        slideshowSpeed: 5000,
        easing:"swing",
        smoothHeight: false,
        pauseOnAction:true,
        pauseOnHover:true,
        start: function(slider){
            //$('#loader').remove();
        },
        after: function(slider){
            //
        }
    });

    // 	$(document).ready(function(){
    // 		var sbwi =($(document.body).width());
    // 		$('ul.scroll_slider li').css("width","sbwipx");
    // 　});

    $('.go_top').click(function() {
        $('body,html').animate({
                "scrollTop": 0
            },
            1000)
    });

    // ajax
    $('#subscribe').click(function(){
        $.ajax({
            url: '',
            type: 'GET',
            data: $('#m_feedback_form').serialize(),
        })
    });
</script>
<!-- 数字滚动 -->
<script>
    var options = {
        useEasing : true,
        useGrouping : true,
        separator : ',',
        decimal : '.',
        prefix : '',
        suffix : ''
    };
    var demo = new CountUp("numgund", 0, 4200, 0, 1.5, options);
    var demo2 = new CountUp("numgund2", 0, 4200, 0, 1.5, options);
    var demo3 = new CountUp("numgund3", 0, 4200, 0, 1.5, options);
    demo.start();
    demo2.start();
    demo3.start();
    //滚动监听
    // $(window).scroll(function(){
    // 	console.log($(window).scrollTop());
    //  	if($(window).scrollTop()>=4940){
    //      demo.start();
    //      demo2.start();
    //      demo3.start();
    //  	}
    // })
</script>
<!-- 数字滚动 end -->
<script>
    $("#mobile_key").click(function(){
        $('.side_nav').css("right","0");
        $('.mark').addClass('open');
    });
    $('.mark').bind('click',function() {
        $('.mark').removeClass('open');
        $('.side_nav').css('right', '-70%');
    })

    $('._nab1').click(function(){
        $('._icon1').css("transform","rotate(90deg)");
        $('._box1').css("display","block");
        $('._icon2').css("transform","rotate(0deg)");
        $('._box2').css("display","none");
    });
    $('._nab2').click(function(){
        $('._icon1').css("transform","rotate(0deg)");
        $('._box1').css("display","none");
        $('._icon2').css("transform","rotate(90deg)");
        $('._box2').css("display","block");
    });
</script>
<!-- m_worldwide -->
<script>
    $(function() {
        var num = 0;
        function goLeft() {
            //是根据你给的尺寸，可变的
            if (num == -375) {
                num = 0;
            }
            num -= 1;
            $(".scroll_slider").css({
                left: num
            })
        }
        //设置滚动速度
        var timer = setInterval(goLeft, 20);

    })
</script>
<!-- m_worldwide end -->
</body>
</html>
